/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2024-03-19     weihui       the first version
 */
#ifndef APPLICATIONS_BSP_BSP_I2C1_H_
#define APPLICATIONS_BSP_BSP_I2C1_H_

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#include <bsp/bsp.h>

#define I2C_DIR_PIN GET_PIN(B,8)

void bsp_i2c1_init(void);
uint16_t read_sensor_value(uint8_t addr,uint8_t reg);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* APPLICATIONS_BSP_BSP_I2C1_H_ */
